package com.hotel.api.service;

import com.hotel.api.entity.Post;
import com.hotel.api.entity.PostLike;
import com.hotel.api.vo.UserPostVO;

import java.util.List;

/**
 * 帖子管理
 *
 * @Author 涛涛
 * @Create 2019/8/29
 */
public interface PostService {

    int insert(Post post);

    List<Post> selectAll();

    int deletePostById(Integer id);

    List<UserPostVO> userScanPost(Integer uid);

    List<Post> selectUserPost(Integer id);

    int insert(PostLike postLike);

    int userCancelLike(Integer uid, Integer pid);

}
